import wx

#--------------------------------------------------------------------------
#Class for two tabs in same window on the top.
#--------------------------------------------------------------------------

class TabPanel(wx.Panel):
	#----------------------------------------------------------------------
	def __init__(self, parent):
		wx.Panel.__init__(self, parent=parent, id=wx.ID_ANY)
		self.Sizer           = wx.GridBagSizer(5,5)
		self.SetSizer(self.Sizer)
		self.SetBackgroundColour("DarkGray")
#--------------- End of Class ----------------------------------------------

class Panel(TabPanel):
	def __init__(self,parent):
		TabPanel.__init__(self,parent)

		text = wx.StaticText(self, label="Select the Colour of Overlay Text")
		self.Sizer.Add(text,pos=(1, 0),span=(1, 4),flag=wx.LEFT ,border=2)
		self.color = wx.ColourPickerCtrl(self,col=wx.WHITE,style=wx.CLRP_USE_TEXTCTRL)
		self.Sizer.Add(self.color,pos=(2, 0),span=(1, 4),flag=wx.LEFT ,border=2)

		text = wx.StaticText(self, label="Select the Colour of Overlay Text Shadow")
		self.Sizer.Add(text,pos=(4, 0),span=(1, 4),flag=wx.LEFT ,border=2)
		self.shadowColor = wx.ColourPickerCtrl(self,col=wx.BLACK,style=wx.CLRP_USE_TEXTCTRL)
		self.Sizer.Add(self.shadowColor,pos=(5, 0),span=(1, 4),flag=wx.LEFT ,border=2)

		text = wx.StaticText(self, label="Select the Width of Shadow in X direction")
		self.Sizer.Add(text,pos=(7, 0),span=(1, 4),flag=wx.LEFT ,border=2)
		self.sliderX = wx.Slider(self,value=3,minValue=0, maxValue=10,style=wx.SL_HORIZONTAL | wx.SL_LABELS,size=(250, -1) )
		self.sliderX.SetTickFreq(5, 1)
		self.Sizer.Add(self.sliderX,pos=(8, 0),span=(1, 4),flag=wx.LEFT ,border=2)

		text = wx.StaticText(self, label="Select the Width of Shadow in y direction")
		self.Sizer.Add(text,pos=(10, 0),span=(1, 4),flag=wx.LEFT ,border=2)
		self.sliderY = wx.Slider(self,value=3,minValue=0, maxValue=10,style=wx.SL_HORIZONTAL | wx.SL_LABELS,size=(250, -1) )
		self.sliderY.SetTickFreq(5, 1)
		self.Sizer.Add(self.sliderY,pos=(11, 0),span=(1, 4),flag=wx.LEFT ,border=2)
		self.xyz= "123"

	def getShadowX(self):
		return self.sliderX.getValue()

	def getShadowY(self):
		return self.sliderY.getValue()

class info:
	def __init__(self):
		self.color = 0xffffff
		self.shadowColor = 0x000000
		self.shadowX = 3
		self.shadowY = 3

dInfo = info()
